import { connect } from 'dva';
import styles from './index.less';
import { WingBlank,List } from 'antd-mobile';
import selectImg from "../../assets/slect-date@3x.png";
import rightTriangle from "../../assets/icon3@3x.png";
import router from 'umi/router';

function App({myPromote,dispatch}) {
    const { text,list } = myPromote;
    return (
        <div className={styles.normal}>
          <div className={styles.tip}>
            <WingBlank size="lg">
              <div className={styles.dateModule}>
                <img className={styles.selectImg} src={selectImg}/>
                <span className={styles.dateText}>2018年10月1日-2018年10月15日</span>
              </div>
            </WingBlank>
            <div className={styles.commission}>
              <span className={styles.commissionText}>当月推广总数</span>
              <span className={styles.commissionAmount}>856笔</span>
            </div>
          </div>
          <div className={styles.listModule}>
            <div>
              <span>推广渠道</span>
            </div>
            <div onClick={()=>router.push('promoteDetail')}>
              <span>微信朋友圈</span>
              <span>400笔</span>
              <img className={styles.rightIcon} src={rightTriangle}/>
            </div>
            <div onClick={()=>router.push('promoteDetail')}>
              <span>微信群</span>
              <span>456笔</span>
              <img className={styles.rightIcon} src={rightTriangle}/>
            </div>
          </div>
        </div>
    );
}
export default connect(({myPromote})=>({myPromote}))(App);
